<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="tags" tagdir="/WEB-INF/tags"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"
%><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"
%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
%><head>
	<title><fmt:message key="label.search.byExample" /></title>
</head>
<body>
	<c:url value="/domain/account/list" var="listUrl"/>
	<form:form action="${listUrl}" modelAttribute="account">
		<table class="show">
			<tbody>
				<tr>
					<th><fmt:message key="account_addressId" /></th>
					<td>
						<form:select path="mainAddress" cssClass="number">
							<form:option value="" label=""/>
							<form:options items="${mainAddresses}" itemValue="primaryKey"/>
						</form:select>
						<form:errors path="mainAddress" cssClass="error"/>
						<form:errors path="addressId" cssClass="error"/>
					</td>
				</tr>
				<tr>
					<th><fmt:message key="account_username" /></th>
					<td>
						<form:input path="username"/>
						<form:errors path="username" cssClass="error"/>
					</td>
				</tr>
				<tr>
					<th><fmt:message key="account_password" /></th>
					<td>
						<form:password path="password"/>
						<form:errors path="password" cssClass="error"/>
					</td>
				</tr>
				<tr>
					<th><fmt:message key="account_email" /></th>
					<td>
						<form:input path="email"/>
						<form:errors path="email" cssClass="error"/>
					</td>
				</tr>
				<tr>
					<th><fmt:message key="account_isEnabled" /></th>
					<td>
						<form:select path="isEnabled" >
							<form:option value="" label=""/>
							<form:option value="true"/>
							<form:option value="false"/>
						</form:select>
						<form:errors path="isEnabled" cssClass="error"/>
					</td>
				</tr>
				<tr>
					<th><fmt:message key="account_birthDate" /></th>
					<td>
						<form:input path="birthDate" cssClass="datePicker"/>
						<form:errors path="birthDate" cssClass="error"/>
					</td>
				</tr>
				<tr>
					<th><fmt:message key="account_civility" /></th>
					<td>
						<form:select path="civility">
							<form:option value="" label="" />
							<form:options/>
						</form:select>
						<form:errors path="civility" cssClass="error"/>
					</td>
				</tr>
				<tr>
					<th><fmt:message key="account_firstName" /></th>
					<td>
						<form:input path="firstName"/>
						<form:errors path="firstName" cssClass="error"/>
					</td>
				</tr>
				<tr>
					<th><fmt:message key="account_lastName" /></th>
					<td>
						<form:input path="lastName"/>
						<form:errors path="lastName" cssClass="error"/>
					</td>
				</tr>
				<tr>
					<th><fmt:message key="account_yearsOfExperience" /></th>
					<td>
						<form:input path="yearsOfExperience"/>
						<form:errors path="yearsOfExperience" cssClass="error"/>
					</td>
				</tr>
			</tbody>
			<tfoot>
				<tr>
					<td colspan="2">
						<tags:button type="submit" key="crud.search.button" icon="search"/>
					</td>
				</tr>
			</tfoot>
		</table>
	</form:form>
</body>
